﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteWithControlAccess.Master"
    Inherits="System.Web.Mvc.ViewPage<ProjetoComperio.DataLayer.Entities.EducationLevel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Usuários por nível de ensino</h2>
    <div class="Grid">
        <%= Html.Grid(ViewData["GridSource"] as List<ProjetoComperio.DataLayer.Entities.EducationLevel>).Columns(
           column => 
           {
            column.For(x => x.Description).Named("Descrição");
            column.For(x => x.People.Count()).Named("Quantidade de Usuários");
           }).Attributes(Style =>  "width:100%").Empty("Sem resultados")
        %>
    </div>
    <br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>
